import request from '@/utils/request'

// 获取列表数据
export function getReportData(query) {
  return request({
    url: `/patrol/report/list`,
    method: 'get',
    params: query
  })
}

// 获取详情
export function getDetails(data, reportType) {
  return request({
    url: `/patrol/report/getInfo?serviceId=${data.serviceId}&reportType=${reportType}&timePeriod=${data.timePeriod}`,
    method: 'get',
  })
}